package com.sandasai.action.admin;


import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionSupport;
import com.sandasai.service.AdminManager;
import com.sandasai.vo.PageBean;
@Controller
@Scope("prototype")
public class AdminInfoPageAction extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * @return
	 */
	@Resource
	private AdminManager adminManager;
	private PageBean pageBean;
	private int page;
	public String execute() {
		// TODO Auto-generated method stub
		//分页显示所有信息
		this.pageBean = adminManager.queryForPage(10, page);
		return SUCCESS;
	}
	public PageBean getPageBean() {
		return pageBean;
	}
	public void setPageBean(PageBean pageBean) {
		this.pageBean = pageBean;
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}

}